<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/win.css">

</head>

<body>

		<!--以下为改为DIV＋CSS布局  -->
<div id='header'>
<jsp:include page="common/header.jsp"></jsp:include>
		</div>
		<div id='main_play'>
			<div id='main_left'>
				
				<div id="Mleft_two">
				<form action="defaultServlet" method="post" name="pageForm2">
				<input type="hidden" name="currentPage">
					<div style="width: 530px;height: 346px;margin: 60px 0 0 90px;">
					<font face="华康娃娃体W5(P)" size="3" color="#33cc33">
					<c:forEach items="${lastestUsers}" var="m">
						<div style="width: 265px;height:253px;float: left;">
							<div style="width: 110px;height:168px;float: left;margin: 5px 0 0 5px;padding: 0;">
								<img alt="asdfs" src="uploadimge/02.gif" height="150px"  width="110px">
							</div>
							<div style="float: left; height: 145px;margin: 10 0 5 5px;">
								<span>
								<a href="member/MemberServlet?method=listById_member&NotMember=true&id=${m.ID }">
								${m.userName }</a></span>
								<span>${m.birthday }，${m.now_address } ，${m.stature }cm，${m.salary}元</span><br/>
								<span>${m.constellation}</span><br/>
								  <a href="javascript:void(0)" onclick="javascript:window.open('friend.do?method=add&friendId=${m.ID}','添加好友','scrollbars=yes,width=800,height=600,alwaysRaised=1');">加为好友</a>
							</div>

						</div>
					</c:forEach>
					</font>	
					
						
						
					</div>
					</form>
				</div>
				<div id="Mleft_three">
		
				</div>
			</div>
			<div id='main_right' align="center">
				<div id="Mright_one">
					<div id="MR1_form">
						<form action="user/login.do" method="post" name="formName" style= "margin-top:-1px">
						  <input type="hidden" name="method" value="login_member">
						  <table align="left">
                            <tr>
                              <td width=138><input type="text" name="userName" style="width:120px;" value="请输入用户名" onclick="this.value=''"></td>
                              <td rowspan=3>
                              <input name="button" type="button" value="登 陆" style="width:60px" onClick="document.formName.submit()"><br/>
                              </td>
                            </tr>
                            <tr>
                              <td><input type="password" name="password" style="width:120px"/></td>
                            </tr>
							
                          </table>
						</form>
					</div>
				</div>
				<div id="Mright_two">
					<div id="MR2_form" style="height: 180px;margin-top: 0px;width: 220px;">
<!--						<font face="华康娃娃体W5(P)">爱之搜索</font>-->
						<form action="member/MemberServlet?method=search_member" method="post" style= "margin-top:10px" name="formName1">
							<div style="">
								<select name="age" id="age" style="width: 100px;">
						           <option value="">请选择年龄</option>
						           <option value="0-16">0-16</option>
						           <option value="16-22" >16-22</option>
						           <option value="22-30" >22-30</option>
						           <option value="31-40" >31-40</option>
						           <option value="40-100" >40-100</option>
						        </select>
						        <select name="sex" id="sex" style="width: 100px;">
						           <option value="">请选择性别</option>
						           <option value="男">男</option>
						           <option value="女" >女</option>
						        </select>
							</div>
							<div style= "margin-top:10px">
								<select name="statues" id="statues" style="width: 100px;">
						           <option value="">请选择身高</option>
						           <option value="0-140">0-140</option>
						           <option value="140-150" >140-150</option>
						           <option value="150-160" >150-160</option>
						           <option value="170-180" >170-180</option>
						           <option value="190-200" >190-200</option>
						           <option value="200-300" >200-300</option>
						        </select>
						        <select name="now_address" id="now_address" style="width: 100px;">
						           <option value="">请选择地址</option>
						           <option value="广东">广东</option>
						           <option value="湖南" >湖南</option>
						        </select>
							</div>
							<div style= "margin-top:10px">
								<select name="education" id="education" style="width: 100px;">
						           <option value="">请选择学历</option>
						           <option value="博士后">博士后</option>
						           <option value="博士" >博士</option>
						           <option value="硕士" >硕士</option>
						           <option value="本科" >本科</option>
						           <option value="高中" >高中</option>
						           <option value="初中" >初中</option>
						        </select>
						        <select name="salary" id="salary" style="width: 100px;">
						           <option value="">请选择月薪</option>
						           <option value="0-500">0-500</option>
						           <option value="500-1000" >140-150</option>
						           <option value="1000-1500" >500-1000</option>
						           <option value="1500-3000" >1500-3000</option>
						           <option value="3000-5000" >3000-5000</option>
						           <option value="5000-10000" >5000-10000</option>
						        </select>
							</div>
							<div style= "margin-top:10px">
							 <c:if test="${!empty member}">
								<input type="image" name="submit" width="100px" height="50px" src="images/search_icon.gif" onClick="document.formName1.submit()"/>
							</c:if>
							<c:if test="${empty member}">
								<font color="red">你还没登录，不可以进行高级搜索</font>
							</c:if>
							</div>
						</form>
					</div>
				</div>
				<div id="Mright_three">
					
      
					
				
				</div>
			</div>
		</div>
		<div id='footer'>copyright gm</div>
</body>
</html>